<%
    if(session.getAttribute("KhachHang") != null)
        {
            response.sendRedirect("index.jsp");
        }
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  uri="/struts-tags" prefix="s" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>ĐĂNG NHẬP</title>
    </head>
    <body style="background-color: #0099ff;">
        <table style="margin-top: 250px;margin-left: 40%;">
             <tr>
                <td colspan="2">
                    <h1>Đăng nhập</h1>
                </td>
            </tr>
            <tr>
                <td>
                    <s:form action="DangNhap"  method = "POST">
                        <s:textfield name="tendangnhap" label="Tên đăng nhập" maxLength="50"/>
                        <s:textfield name="matkhau" label="Mật khẩu" maxLength="50"/>
                        <s:submit name="OK" value="Đăng nhập" method="execute" />
                    </s:form>
                </td>

            </tr>
            <tr>
                <td>
                    <a href="index.jsp">Trang chủ</a>
                    <a href="quenmatkhau.jsp">Quên mật khẩu?</a>
                    <a href="dangky.jsp">Chưa có tài khoản ?</a>
                </td>
            </tr>
            <tr>
                <td><font style="font-weight: bold;"><s:actionerror /></font></td>
            </tr>

        </table>
       
      
    </body>
</html>
